home *** CD-ROM | disk | FTP | other *** search
- Plain Vanilla Posting Program II
- As Submitted to C Users' Group Library
- March 6, 1994
-
- 1. What the Program Does
-
- The Plain Vanilla Posting Program II is a simple program that takes
- over three of the most boring accounting tasks--posting from the
- general journal to the general ledger, drawing a trial balance, and
- putting account balances into a report.
-
- For more information and complete instructions on the use of the program,
- read the file POST.DOC.
-
- 2. How to Compile the Program
-
- The Plain Vanilla Posting Program II was written in Turbo C 2.0 for
- computers running MS-DOS or PC-DOS, version 2.0 or later. Most of the
- source code is contained in the file POST.C, which was written in
- standard C that you should be able to recompile for most versions of
- UNIX and its clones, and perhaps for other operating systems as well.
- Even on DOS machines, you need not use Turbo C 2.0 (which is no longer
- available). Any compatible later version of Turbo or Borland C++ will
- do nicely. Other C or C++ compilers should also work.
-
- The only nonportable part of the program has been isolated in the file
- ARITHMET.C, which contains embedded assembler code. This was done because
- it was the only practical way to catch arithmetic overflows, which would
- be disastrous for an accounting application if they went undetected.
- Otherwise, it's just a simple 32-bit arithmetic package with only five
- operations: addition, negation, multiplication and division by 10, and
- the computation of the remainder when a 32-bit number is divided by 10.
- The last two operations cannot produce overflows and could have been
- written in standard C, but we just got a little carried away.
-
- If you want to port the program to a machine that does 32-bit
- arithmetic, rewriting ARITHMET.C should be be very easy indeed.
-
- The program was compiled and linked in the "Compact" memory model (near
- function calls, far data pointers).
-
- 3. Restrictions on Use
-
- Although the Plain Vanilla Posting Program II is copyrighted, there is
- really only one restriction on its use. You may not sell the program or
- any program derived from it. You may give it away, and indeed you are
- encouraged to do so. You may charge a reasonable fee for media
- duplication, shipping and handling, as the C Users' Group Library and
- many other similar libraries do, but you may not charge anything for the
- software itself.
-
- 4. Disclaimers
-
- We've been using the Plain Vanilla Posting Program II for several years,
- and we haven't had any problems with it. However, we cannot guarantee
- that it is free from bugs or that its use will be uninterrupted or free
- of errors.
-
- 5. To Contact Us
-
- We would like to hear from users of the Plain Vanilla Posting Program II
- (and also other Plain Vanilla programs). We can be reached at the
- following address:
-
- Plain Vanilla Corporation
- P.O. Box 4493
- San Diego CA 92164
-
- You may also send E-mail to me at 75746.3411@compuserve.com.
-
-
- Philip J. Erdelsky
- San Diego, California
- March 6, 1994
-
-